package cn.xo68.ide.plugin.common.job;

public class JobCallbackAdapter implements JobCallback {

    private final String jobName;

    public JobCallbackAdapter(String jobName) {
        this.jobName = jobName;
    }

    @Override
    public void success() {
        logger.info(this.jobName+":任务执行成功");
    }

    @Override
    public void fail(Throwable e) {
        logger.error(this.jobName+":任务执行异常",e);
    }
}
